import 'dart:convert';

AssessmentBooksResult assessmentBooksResultFromJson(String str) =>
    AssessmentBooksResult.fromJson(json.decode(str));

String assessmentBooksResultToJson(AssessmentBooksResult data) =>
    json.encode(data.toJson());

class AssessmentBooksResult {
  AssessmentBooksResult({
    this.limit,
    this.page,
    this.count,
    this.list,
  });

  int? limit;
  int? page;
  int? count;
  List<AssessmentBook>? list;

  factory AssessmentBooksResult.fromJson(Map<String, dynamic> json) =>
      AssessmentBooksResult(
        limit: json["limit"],
        page: json["page"],
        count: json["count"],
        list: json["list"] != null
            ? List<AssessmentBook>.from(
                json["list"].map((x) => AssessmentBook.fromJson(x)))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "limit": limit,
        "page": page,
        "count": count,
        "list": list != null
            ? List<dynamic>.from(list!.map((x) => x.toJson()))
            : null,
      };
}

class AssessmentBook {
  AssessmentBook({
    this.image,
    this.descriptionTraditional,
    this.commitTime,
    this.level,
    this.description,
    this.id,
    this.title,
    this.type,
    this.titleTraditional,
    this.platform,
    this.bookId,
  });

  String? image;
  String? descriptionTraditional;
  int? commitTime;
  int? level;
  String? description;
  String? id;
  String? title;
  dynamic type;
  String? titleTraditional;
  dynamic platform;
  String? bookId;

  factory AssessmentBook.fromJson(Map<String, dynamic> json) => AssessmentBook(
        image: json["image"],
        descriptionTraditional: json["descriptionTraditional"],
        commitTime: json["commitTime"],
        level: json["level"],
        description: json["description"],
        id: json["id"],
        title: json["title"],
        type: json["type"],
        titleTraditional: json["titleTraditional"],
        platform: json["platform"],
        bookId: json["bookId"],
      );

  Map<String, dynamic> toJson() => {
        "image": image,
        "descriptionTraditional": descriptionTraditional,
        "commitTime": commitTime,
        "level": level,
        "description": description,
        "id": id,
        "title": title,
        "type": type,
        "titleTraditional": titleTraditional,
        "platform": platform,
        "bookId": bookId,
      };
}
